<?php

namespace Demo\Logic;
use \Common\Logic\BaseLogic;

class DemoLogic extends BaseLogic
{

    private $userMgmtEvent;

    public function __construct()
    {
        parent::__construct();
        //不要定义同分组的logic
        $this->userMgmtEvent = A('Common/UserMgmt', 'Event');
    }

    public function test()
    {
        static::$res->isSuc(array());
        static::$res->err("失败");
        return static::$res->suc("成功", 0);
    }

}
